<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="app">
    <label for="male">
        <input type="radio" id="male"  v-model="sex">男
    </label>
    <label for="female">
        <input type="radio" id="female"  v-model="sex">女
    </label>
    <!--    <input type="checkbox"> 和 <input type="radio"> 中必须设置 value 属性。-->
    <h2>你选择了：{{sex}}</h2>
</div>
<script src="../js/vue.js"></script>
<script>
    const aaa = new Vue({
        el: "#app",
        data: {
            message: "hello,guys",
            sex:"男"
        }
    })
</script>

</body>
</html>